Skip to content

Fix exception on missing video fields#245

Merged
ikalchev merged 2 commits intoikalchev:devfrom
bdraco:crash_on_missing_fields
May 6, 2020
Merged

Fix exception on missing video fields#245
ikalchev merged 2 commits intoikalchev:devfrom
bdraco:crash_on_missing_fields

Conversation

@bdraco
Copy link
Copy Markdown
Contributor

@bdraco bdraco commented May 5, 2020

  • Fix exception on missing video fields

Takes care of the # TODO: Optionals, handle the case where they are missing. Sometimes streams would fail to start because a field would be missing in VIDEO_TYPES['ATTRIBUTES']. Everything is starting consistently now with this change.

  • Make logging consistent

Logging was calling logging instead of logger like the other modules. This meant the debug log didn't show up in Home Asssistant.

@codecov-io
Copy link
Copy Markdown

codecov-io commented May 5, 2020

Codecov Report

Merging #245 into dev will decrease coverage by 0.16%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##              dev     #245      +/-   ##
==========================================
- Coverage   63.13%   62.96%   -0.17%     
==========================================
  Files          16       16              
  Lines        1725     1731       +6     
  Branches      180      185       +5     
==========================================
+ Hits         1089     1090       +1     
  Misses        589      589              
- Partials       47       52       +5     
Impacted Files Coverage Δ
pyhap/camera.py 77.20% <50.00%> (-1.37%) ⬇️

@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented May 5, 2020

Also Home Assistant now has HomeKit camera support in the upcoming 0.110 🍾

@ikalchev ikalchev merged commit f372fe4 into ikalchev:dev May 6, 2020
@ikalchev
Copy link
Copy Markdown
Owner

ikalchev commented May 6, 2020

I suppose a release with the fix is needed. Anything else I should wait for before doing it?

@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented May 6, 2020

I suppose a release with the fix is needed. Anything else I should wait for before doing it?

Nothing else in the queue so a release would be appreciated. Thank you!

@bdraco
Copy link
Copy Markdown
Contributor Author

bdraco commented May 8, 2020

Well @ikalchev, looks like I was wrong there is one more thing I found when I was adding and removing test bridges for cameras #246

Thanks again for the reviews and releases. 🎉

bdraco added a commit to bdraco/home-assistant that referenced this pull request May 12, 2020
Fix race condition that causes pairing and unpairing failures. ikalchev/HAP-python#246
Fix loop on dropped connections that causes temporary stalls and connection loss. ikalchev/HAP-python#249
Fix exception on missing video fields. ikalchev/HAP-python#245
bdraco added a commit to home-assistant/core that referenced this pull request May 12, 2020
Fix race condition that causes pairing and unpairing failures. ikalchev/HAP-python#246
Fix loop on dropped connections that causes temporary stalls and connection loss. ikalchev/HAP-python#249
Fix exception on missing video fields. ikalchev/HAP-python#245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants